package com.nhh.v.service;

import com.github.pagehelper.PageHelper;

/**
 * Created by ywp on 2018/9/4.
 */
public abstract class BaseService {


    /**
     * 适配
     * scala无法直接调用java static method
     */
    protected boolean DEFAULT_COUNT = false;

    /**
     * 适配
     * scala无法直接调用java static method
     */
    protected void startPage(int pageNum, int pageSize, boolean count) {
        PageHelper.startPage(pageNum, pageSize, count);
    }


    protected void startPage(int pageNum, int pageSize, String orderBy) {
        PageHelper.startPage(pageNum, pageSize, orderBy);
    }
}
